import Request from "../uilts/Request"

//登陆接口
export const login = (data) => Request({
    url: `/login`,
    method: "post",
    params: data
})
// 获取侧边栏
export const menus = () => Request({
    url: `/menus`,
})
// 获取用户列表
export const users = (data) => Request({
    url: `/users`,
    method: "get",
    params: data
})
// 删除用户
export const delusers = (url) => Request({
    url: url,
    method: "delete",
})
// 添加用户
export const adduser = (data) => Request({
    url: `/users`,
    method: "post",
    data
})
// 修改用户状态
export const change = (url) => Request({
    url,
    method: "put",
})
// 修改用户
export const edit = (url, data) => Request({
    url,
    method: "put",
    data
})

